<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

<B><A HREF="HOSTNAME.html">HOSTNAME(1)</A></B>		FreeBSD General Commands Manual 	   <B><A HREF="HOSTNAME.html">HOSTNAME(1)</A></B>


</PRE>
<H2>NAME</H2><PRE>
     <B>hostname</B> - set or print name of current host system


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>hostname</B> [<B>-s</B>] [<I>name-of-host</I>]


</PRE>
<H2>DESCRIPTION</H2><PRE>
     <B>Hostname</B> prints the name of the current host.  The super-user can set the
     hostname by supplying an argument; this is usually done in the network
     initialization script <I>/etc/rc.network</I>, normally run at boot time.

     Options:

     <B>-s</B>    Trim off any domain information from the printed name.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B><A HREF="gethostname.html">gethostname(3)</A></B>


</PRE>
<H2>HISTORY</H2><PRE>
     The <B>hostname</B> command appeared in 4.2BSD.

4.2 Berkeley Distribution	April 28, 1995				     1
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
